<?php

namespace App\Http\Controllers\api;

use App\Http\Controllers\Controller;
use App\Http\Repository\HouseDetailRepository;
use Illuminate\Http\Request;
use App\Http\Controllers\common\BaseController;
class HouseDetailController extends Controller
{
    /**
     * @param Request $request
     * @return false|string
     * Su ang
     * 房源详情
     */
    public function houseDetail(Request $request)
    {
        $id = $request->get('id');
        if (!empty($id) && !is_numeric($id)){
            return 'id错误';
        }
            $data = HouseDetailRepository::houseDetail($id);
        return $data;
    }
}
